//
//  sanquanhoneViewController.m
//  AllLessons
//
//  Created by QY on 15/8/20.
//  Copyright (c) 2015年 mohekeji. All rights reserved.
//

#import "sanquanhoneViewController.h"
#import "jichengViewController.h"
#define myNumber 123

@interface sanquanhoneViewController ()

@end

@implementation sanquanhoneViewController
- (IBAction)countButton:(id)sender {
    int a=[self.oneTextField.text intValue];
    int b=[self.twoTextField.text intValue];
    self.resultLabel.text=[NSString stringWithFormat:@"%@",a>b?@"大于":@"小于"];

}
- (IBAction)disapButton:(id)sender {
    jichengViewController*wc=[[jichengViewController alloc]init];
    [self.navigationController pushViewController:wc animated:YES];
    
    
}
- (void)viewDidLoad {
    [super viewDidLoad];
    [[NSUserDefaults standardUserDefaults]setObject:[NSString stringWithFormat:@"%d",myNumber] forKey:@"key"];
    
    
    
    
    
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
